package com.amumu.drama.portal.modules.order.controller;

import com.amumu.drama.common.base.api.CommonResult;
import com.amumu.drama.common.modules.order.cache.OrderSettingCache;
import com.amumu.drama.model.OmsOrderSetting;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author sunzhuang
 * @date 2024/5/15 08:47
 * @slogan 天下风云出我辈, 一入代码岁月催
 * @desc todo
 */
@RestController
@Api(tags = "订单设置")
@RequestMapping("/orderSetting")
public class OrderSettingController {

    @ApiOperation("微丸子-获取指定订单设置")
    @GetMapping("/getOrderSetting")
    public CommonResult<OmsOrderSetting> getItem() {
        OmsOrderSetting orderSetting = OrderSettingCache.INSTANCE.getOrderSetting();
        return CommonResult.success(orderSetting);
    }
}
